package com.hzdl.car.util;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
//菜单管理中左侧dtree显示使用
@Getter
@Setter
@ToString
public class MenuTree implements Serializable {
    private Integer id;
    private Integer parentId;
    private String title;

    private List<MenuTree> children = new ArrayList<>();

    public MenuTree(Integer id, Integer parentId, String title) {
        this.id = id;
        this.parentId = parentId;
        this.title = title;
    }
}
